package net.entelijan.cobean.examples.showcase.combobox;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JPanel;

import net.entelijan.cobean.examples.util.ExamplesUtil;
import net.entelijan.scf.DefaultShowcasePanel;
import net.miginfocom.swing.MigLayout;

public class ComboboxPanel extends DefaultShowcasePanel {

	private JComboBox comboBox = new JComboBox();

	private JButton showSelectedButton = new JButton("Show Selected");

	private JButton select0Button = new JButton("Select Item 0");

	private JButton select3Button = new JButton("Select Item 3");

	private JButton unselectButton = new JButton("Unselect");

	private JButton setRestrictedButton = new JButton("1970-2000");

	private JButton setAllButton = new JButton("All");

	private static final long serialVersionUID = 1L;

	public ComboboxPanel() {
		super();
		setLayout(new MigLayout());
		add(this.comboBox, "w max, grow, wrap");
		add(new JPanel(), "h max, grow, wrap");
		add(ExamplesUtil.createButtonsPanel(100, this.showSelectedButton,
				this.select0Button, this.select3Button, this.unselectButton,
				this.setRestrictedButton, this.setAllButton));
	}

	public JComboBox getComboBox() {
		return comboBox;
	}

	public void setComboBox(JComboBox comboBox) {
		this.comboBox = comboBox;
	}

	public JButton getShowSelectedButton() {
		return showSelectedButton;
	}

	public void setShowSelectedButton(JButton showSelectedButton) {
		this.showSelectedButton = showSelectedButton;
	}

	public JButton getSelect0Button() {
		return select0Button;
	}

	public void setSelect0Button(JButton select0Button) {
		this.select0Button = select0Button;
	}

	public JButton getSelect3Button() {
		return select3Button;
	}

	public void setSelect3Button(JButton select3Button) {
		this.select3Button = select3Button;
	}

	public JButton getUnselectButton() {
		return unselectButton;
	}

	public void setUnselectButton(JButton unselectButton) {
		this.unselectButton = unselectButton;
	}

	public JButton getSetRestrictedButton() {
		return setRestrictedButton;
	}

	public void setSetRestrictedButton(JButton setEsButton) {
		this.setRestrictedButton = setEsButton;
	}

	public JButton getSetAllButton() {
		return setAllButton;
	}

	public void setSetAllButton(JButton setEsEnButton) {
		this.setAllButton = setEsEnButton;
	}

}
